<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/1/30
 * Time: 15:32
 */
global $_W,$_GPC;
if($_W['isajax']){
    $lottory_user = pdo_fetchall("SELECT distinct a.user_id FROM ims_meepo_xianchang_recognize a,ims_meepo_xianchang_lottory_user b  WHERE a.user_id=b.user_id and b.is_receive is NULL ",array());
    if(empty($lottory_user)){
        die(json_encode(error(-1,'无中奖信息')));
    }else{
        foreach($lottory_user as $row){
            $real_user[] = $row['user_id'];
        }

        die(json_encode(error(0,implode(",", $real_user))));
    }
}